// Copyright 2011 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

// Converts expectation protocol buffers described using ValueKit and/or
// RepeatedValueKit (a.k.a. proto kit) into another form of expectation
// protocol buffers defined in expectation.proto so that we can evaluate them.

#ifndef GOOGLE_PROTOBUF_EXPECTATION_PROTO_KIT_CONVERTER_H_
#define GOOGLE_PROTOBUF_EXPECTATION_PROTO_KIT_CONVERTER_H_

namespace google {
namespace protobuf {

class Descriptor;
class Message;

}  // namespace protobuf
}  // namespace google

namespace google {
namespace protobuf_expectation {

class MessageExpectation;
class ValueExpectation;
class ValueKit;

bool ConvertToGenericExpectation(const ValueKit& expectation,
                                 ValueExpectation* generic_expectation);

bool ConvertToGenericExpectation(const protobuf::Descriptor* actual_descriptor,
                                 const protobuf::Message& expectation,
                                 MessageExpectation* generic_expectation);

}  // namespace protobuf_expectation
}  // namespace google

#endif  // GOOGLE_PROTOBUF_EXPECTATION_PROTO_KIT_CONVERTER_H_
